{% load i18n %}
{% if user.is_anonymous %}
  <form class="navbar-form pull-right form-inline" action="{% url userena_signin %}" method="post">{% csrf_token %}
    <input type="text" class="required input-small search-query" placeholder="{% trans "Login" %}" name="identification" maxlength="75" />
    <input type="password" class="required input-small search-query" placeholder="{% trans "Password" %}" name="password" />
    <label class="checkbox"><input type="checkbox" name="remember_me" id="id_remember_me" />{% trans "Remember" %}</label>
    <div class="btn-group">
      <button type="submit" class="btn btn-small btn-success">{% trans "SignIn" %}</button>
      <a href="{% url userena_signup %}" class="btn btn-small btn-warning">{% trans "SignUp" %}</a>
    </div>
    <input type="hidden" name="next" value="{{ request.get_full_path }}" />
  </form>
{% else %}
  <div class="btn-group pull-right">
    <a href="{% url userena_profile_detail user.username %}" class="btn btn-small btn-primary"><i class="icon-user icon-white"></i> {% trans "My profile" %} ({{ user.site_profile.get_full_name_or_username }})</a>
    <a href="{% url userena_signout %}?next={{ request.path }}" class="btn btn-small btn-danger">{% trans "SignOut" %}</a>
  </div>
{% endif %}